some fixes to config init