tag processing
tags are processed correctly
mode switching