define autorequire on resources