various bug fixes with name mining