implement resourceLoader