moved scripts out of declass main