moved connection manager to its own package
storing connections in a map instead of slice now