adding connectTo and accept