issue-15 should be able to pass in cfgfile