add firebase capability
restructure json data