sorted out all the wrapper calls to firebase