add start function to eventlooper
add new codes to connection