updating API to better deal with enum values