setup zi_lib