add support enum

fixed #1