added genprob option