work with firebase