updated file shell to include matrix cache functions