add read config file support