changed order of autoloaders to load legacy first