refactor with term-dashboard
simplify cache file layout, log files and env vars