fixes #7 add thrift api truncate operation