added class_cache option