add enum support to prototyped utils