fix constructor temp and dac globals