bug fixes related to config reading