add support for direction enumeration.