minor revisions to scripts