[FIX] loading modules: load custom models earlier so that they are available when setting up models