Handle light linear/quadratic settings
some random cleanup