handling config errors