split _main into further partials