add proto handle in proto.py