improved encoder
0.13