added function 'ds.varexist' and amended file 'logindata'