script for mapping a network