add a better ability to use x0, and fix selectCC bug it caused