adding cookie and get node functionality