added support for host-based authentication