modify the path in quit