removed some debugging stuff and finished cacheref model