added functions for communicating with putty