improved multiline input