refactor kompile frontend - 2