context switch v1 working