add binary type & fix some enums issues