create main script