finalize integration logic