added keylength option