small fixes to scripts
ready for another run