about to remove some code from ledmain.c