fiddled with server stuff to agree with modulus