LIBLATTICE_API stuff