add device lost context support for mobile