porting old version tdnizer