added api for public messages correct