adding q to exit, and changing to send all