fix autoload and add email public directory