moving stimulus creation to a separate public function so that stimuli can be generated for other plugins