final tweaks before shut down