refactor component scope compilation
test for refactored component scope compilation