fixes on s3 deployment