prepare and fix autoload