more work to server; creation of Connection class