do not hardcode maximum Zprobe distance use gamma_max*2