better path saving/loading