initial commit of encoder stuff