Encoderwork

fixes #59