add glob pattern handling