lux then moved to mainz with his family, where the rhenish-german national convention, the parliament of the republic of mainz, founded according to the french example and chaired by andreas joseph hofmann elected him to be a representative.