(#3062) - WIP - massive stupid refactoring to fix a one-liner bug

just want to see which tests pass