working on firebase version