.
fixed context switch code