debug with sleep