ctor for erlinit struct