added directive object syntax