split up some big files, and moved to require to load most of the global managers