wip on decode frame