identified curl bug (returns empty str sometimes)