fixed previous bugs in optscript and pltscript from failed git merges