load data in main and data definitions