added debug message and delay before refresh