implemented loadResources method
added boolean return