constrain globbing. Fixes speed problems