make balance threshold (--teragen_balance parameter) adjustable