fixed scripts with line location