broke out some stuff into a bike-light specific file, cause I wanted to