modifying cache system; general cleanup; refining buildfile cache