integrating viewproc, cd, and time