combined setup and main file