fix remote api connection listings https://gist.github.com/oneman/4749342