adds support for traits to autoload