debugging a 100% cpu usage issue