set up main