some scriptdev2 base changes