update to use firebase