add curl helper method