add thrift helper
add main template for mooon