main added, setters removed, normal function implemented for inc/dec connection counter