firebase integration, other stuff