hash admin passwords, more resilient port parsing