intit and type & connection add/remove functions