fixng response to include connect_to parameter when calling metadata