Understanding and preventing CSE