some tweaks to run patent example