change asynch from socket to forked curl