continuation:  basic context save/restore infrastructure