improvment on libuv usage. Need more chek on memory leak