rough adding of firebase code