added S3Api handles for js wrapping