separate compilation-mode and mix