don't pass around null ptrs