moved config loading to separate method