restructured code for setting breakpoints to spot missing keys