update gcm demo mechanism