plugin thread debug logging improved