connection type functions