rewrite support turn on and off and level