modified library for gcm server