change plugins.private_flag to public_flag