refactoring resource path