adds stub_load_singleton_resource.