added authentication, fixed update.py