Extract input package from rbuf before parsing. closes #595