motified to New GCM APIs