refactor config
use const ref in utils