updated sleep library