add init_library method
add init_library method