many modifications to scripts