added number of flags to ban setting