integration fixes.  code NOT operational.  DOES NOT COMPILE