build light working with external config file