use resource not path