add some basic infrastures for model cache