refactored curl options