add public flag for data