added timeout to send_line