Fix/495 refactoring code resolves #495

sure. just hadn't done this because it was a dunderscore method. i changed its invocation to sandbox=sandbox when the runscript() method calls it.  is that good form?