set autoload
refactor