Fixed object ref bug
improved HA code to use Config
links, endpoints, operations are now sorted