[fix] add ID generator to optimize