readded curl callback functions