Fix onoff: easy to define via class