refactored autoloader/generator communication