add handling of toxcore callbacks