cleanup&hibernate support