script for processing address data