refactoring; now running only one sample from single scripts