Reducing the risks of patent loopholes