integrated run script, begin refactoring to eliminate lsp