added script for removing esc sequences from output