fix requires and autoloads