added support for firebase -- NOT A WORKING VERSION