new methods getFile and getMetadata