moved autoloading logic around in engineAPI construct so that it can handle more of the includes.