fix the repository class and improve proxy installation