[major] Refactored loader to nuke race condiations