minor changes to a couple of scripts