added s3 hook