added a function to ResourceLoader