added getTTL and updateTTL functions