cache improvement, test support and new ideas