added relative path parsing to all functions