cache and rmg