work on onoff command