code sharing ResourceLoader