streamlined encoding gets triggered automatically when coding style is 0 (default)
more cleanup