add namespacing and check tty for cached data