add loadResource,fix blocked in Map