add swap diagnostics