added support for loading settings from config