check public flag