adjustments to recieve() in boundary and boundaryHandler