restructure liblights