returning repositories without duplicated
moved fetchRepositories to lib