fix xpath for argument
fix entry_path to resource in method
dont negate the check apparently.. dont know why i was doing this