added light debugging