added initial version of client