fix autohost detection / slightly refactor
update changelog