removed unused function, cleanup pipe calls
added keystroke stop