refactor
add a config file