add api:tryGetConnection and fillConnection