refactoring light manager stuff. wip :rage1:
moar refactoring
more refactoring
refactoring :rage1: