refactoring in progress, multilayer view working