enabled some globbing and made one of the cpp functions slightly faster.