guard against bad arguments