remove the auto-gen code from index.