get input from s3 for all files