additional debug logging added