use debug logging
removed unused field