some minor refactoring to the bad execute code. it is now 74.23% less bad!