added support for createConfigEncoder, TODO: make the script somehow simpler