reference main script properly