add logging to serial for debugging