add file() helper method