new: slightly less-dumb expr_to_config function