reverted earlier change to config reading method