fix serialization
require udt outside tests too