handle diaplan/chatplan in one place