refactor configuration into config class