add Encoder and Bootstrap