changes to scripts in accordance with recent changes