torrent file abstraction for node