first working version of the client module