better config on html mode