pass callback to s3