processData script updated to connect to s3 and interop with php