some stuff before sleep..