updating functionality of get_addresses.hs, accounting for short lines