fixed include guards
factored out byte receiver logic