added check after pause
added additional debug info