added read hook for files, still needs work