working on a simple client