enhance sleep/wake handling