various minor fixes to get mongo setup