added firebase service layer