add libs. improve script load mode.