more work on switching to protected mode