addressed led/delay/reset issue