fixed THALCTRL stuff