fix cde, calling exit is wrong