add esd detection