added config file support