cleanup after debug