changed Encoder to work with processes