reorganize parseOptions
separate middleware options from less options