refactor, into config