restructure firebase package