add root directive