use intermediate functions accepting repo string - for the sake of js