split up main