rebase: allow overriding the maximal length of the generated labels