working version of client (1.0)