got sleep mode working