extend classes in a to_prepare block to help those who use cache_classes = false in production