prepare directive structure and grunt