added write for history, terminal
intermediate edit of integration routing