updated d - disconnect func in onppk