fixed file checker in helper class