better error message while loading dynamic modules