send server responses back to client