do not use deprecated methods from libtorrent