bugfix: sendlineafter and sendlinethen