add tokens and pids directories in configuration