handle zframes better