improved mimic masking of json
added class_cache option
fixed a few bugs
fix for mimic