improved mjsish integration and fix for automatic dedent behavior