fix up config generation to allow more valid values