pwm now starts and stops on command