IS2: additional deframing code