add directive deep option