just backing up before sleep - moving towards platform depdent middle interface