fixing hostname determination issue for get_catalog(), WIP parse_catalog(), issue #20