better logging; misc fixes; external mfs