support security token in ami class