minor fixes for loading dynamic resources