add dic and enum class for api