moved connection accept helper into con module