initial refactor to 0.6, finished ram_cache