added UV support

and made openSocket