adds header property to directive