added wordlen option