debug termination + markup