add ensure_running script