moved to bencode library
Fixed execptions