updated to work with latest toxcore changes