adding more output and better glob check