a few protections against bad null shit