fixing CACHE_REGS stuff (final)