make scripts coroutines, fix a typo