state command is only working in the server