resourceLoader with hashmap now