fix s3 adapter to use mark