added an iterface to curl response