add support for private repositories