try curl callback fn implement