setup of main classes