support for hostbased auth. probably should add some better in code docs next...