shared symbol support & bugs fixed & test cases