Modify server script in groovy