first implementation of client and test server