encoder modules: merge, set common base class