auto generate table
start and restart