change file path by keeping history