mathproc protocol handler examples