most code work for s3 integration done