fixed file parsing issue to use glob