added support for encoder... doesn't really seem to work yet