FIX: cleaned curl options after api call so that each call does not overlap