add encoder and version 3