modifications to scripts