finalized routine for configuring 'hermes' payload on the fly