fixed ser.py and settings.py