add write handler
add connection manager
add custom conn