add settings.py, clean up generate