modify server file thoroughly