prepatch wip sleepmodecode