added inline versions of getResourcePath (x2)