add config file support