setting the main script