add cache dir
remove unused code
normal code care