added api-connection to desktop client