init receiver and sender