use Nan to get value from persistant