client: first working version of client