simplify typeEncoder inclusion