added method to fetch output file from s3