split modes commands in partials