started working on loopable runs but the script is acting weird.