now does Firebase stuff in sync