mini lib to help build clients for midway server.