Async socket handling and refactoring
refactoring, parameterization