improve code for mmc bank switch.