Porting to firebase 1.1.2