starting to add pwm features