move esc around in ruby script