add basic try catch
add autoscroll & send function