bandaid for savepoint scraper bug
apply deepcopy patch
prefetch related for inmates