some tweaks before sleep