parse line number a bit better for pwm clean up