firebase http related fixes