convert on and off requests to 1 and 0 respectively