quick fixes to scripts