change to scripts in accordance with recent changes