add multi cpu support