modified to config file basis.