tighten scope for all pretty print has_key? lookups