impl to support storing of files