extracted Main to Bootstrap to make Main clean