print debugging info to the console
attempt fix for itsskin’s bug
handle situation of preview not available
oops
debug print