refactor of kws scorer with config files