dated as of May 31, 1997 by and among