liblights: some better way :-)

Change-Id: I5354ac7bfcb7b681157bc4713bb58f32d739fa61