working on getResource