it turns out that `run` is not defined in this scope, so this was always throwing an error.