fix some bugs
set sharemanager as singleton
resolve conflic