compile directive after adding