compiles encoder
merged