clean up for rais scripts