moved registering to gcm to a job