The bank pin is certainly not a bug in the client, as other scripts handle it fine.
As for the areas, I wonder why you even use areas. Just find the nearest vein that is accessible without clearing a blockade, or if there is none, clear the nearest blockade. Make it fully dynamic, like a human...