fix #5 interface for client-server communication