fixing server scripts