some fixes to config