only use max_depth for non fk related objects