refactor compiler extension lookup