fixing the interaction with datahub API