inspired by fitmisc mods

re-inspired by @bigmane123