add send_msg
initial work on http keep alive