refactor configuration load