handles multiline scripts