updated to external config file