make it work with the new version of otrsocket