attempted firebase functionality