fixes for light.exe