fixed error. now wait for client