changed config loading sequencing and added conditional init loading