a few fixes to config