update globbing/comment logic