initial version of xrec without byzanz dependency