dialog system almost working