cleanup run/setup logic