apply patch to location module