updated lib for firebase