s3 server handling callback method