add api tryGetConnection and fill