fix minor issues with scripts