added sendlinethen and sendlineafter to basechatter