parse multiline input scripts