big rewrite.  using sc3.7 instead of sc3.4.5