updated the way configuration work