refactoring around script evaluation of interactive and command line
better error message for interactive mode