add new feature for checking cache