made multiline wait a configurable option