libs for zlab and sg