for optional_join, look at tables added directly also