add tile classes and first stab at directives