WIP: implementing connect event dispatcher