initial revision of script - removed any network specific details