fixes to config loading