adding support for prefetch_related