update to new sofia_kp handler
remove old functions