fixes to scripts after testing on a fresh box