adding some pjm functionality