updated recieve.cpp for global WConn