add sleep mode
Merge branch 'jsn/p_test'