overloaded isLocalHost method
code quality