correctly cleaning up
debug levels