added support for config file