accept precision as encoder argument, ref #2