debug cleanup