updated run script for autoinjection