properly NULL-init some vars to avoid logic flaws later