added enum support per #296