main set up