gcm and fences now work. Need to register fence in the background