added client_type to connection struct