added proto functions for new features.

See #1 #2 #3 for details.