install mandala
refactoring