start of modals, some gem pruning