initialize the main script