fixing bugs and catching the fact that the firebase thing is WRONG ALL WRONG 100% WRONG