roughing out pwm stuff