make thread safer
add html client