revising sim plugin to provide more flexibility in how the trial unfolds - related to #12