started to add config file support