refactor pylab usage at receiver