refactor hosted znc