cleans up path var