simplified structure.  removed obsolete script.