fix for autorequire classes