fixes #2, a but that may discard the last command from clients.