added glob to x2grid.py