working on file resource