correctly save routes