minilize and support glob
modify glob pattern