support no target doc no input