added state command to instrument control