automatic switching entity