set output mode before content loading