fix some firebase stuff