refactor resource path