consolidate autoload functionality