fix some bugs

support dispatch lib files