added light exporting (kinda experimental, needs more testing)