set up the main script