cleaned up connHandler