added min tag length setting