added firebase api wrapper