added support for a config file