1.finish regression test; 2. remove previous heuristic for setting true for all libraries. 3. clean some code.