some preliminary code for indicator lights