- enabled adding new repositories

- added option to specify repository target platform
- 2.17.40
hardcoded 3 looks quite weird. What is purpose?