changed connection pool events into structs.