lua part of serialization
meta improvements