have the prototypes of the processing, query and handshake functions