rework of glob to increase speed