added support for per-tile enum and value