constructor and path changes

pathFromBase, pass resourceName in on resource class constructor