aws_sock revised