added flagcounter for fun