hosts rewrite added, bugfixies