fixing up firebase refs