Merge pull request #2 from eternnoir/master

將switch mode 交給各mode決定