improve jstack check