changed client implementation to a while loop taking commands forever type