reverting to old liblights, minor fixes