fixed some bugs and add the system libs module