updated glob check