external db can take a region param, script wrapper