correct priv_dir for lightcontrol and add eventsource handling