added basic cloud messaging handling