updated client to accept sleep command