rocnet: lights function fix