socket fixes for aws