added a switched_to hook

I think we need this for policy changes to enqueue the task