correct all compile bugs. Correct DRS logic.
gisgj