for new connection api