add sock library and thread library