added spawn logging