able to find arbitrary line for a 'host name'
added error handling. added way to retrieve special port. works for most sites but is slow