modify startup.py and fix authentication