rewrite some file utils API