move debug flag to server