sleep now working after major restructuring