tweaks: but crashes on exit