enhance getFile method, add some thing to unify and little change in some other methods