finished init for recv.cpp
stuff