change to new API to get connection