added the replacement classes for KRunState and Transition