minor changes to utility script