add thrift service post prepare hook