add "public" tag instead of set publicflag