both methods need clear cache, so do it before calling them