updated init script to accept parameters
added pong method to auto respond to server pings