added length param to longcat, thx @hadley