begin of SafeQ terminal server replacement