trying to fix curl chunk