fix bug in faithful transport; abstract interface between codec and faithful layers