rev 4

enable scripts functional now
some subs for updating arrays in future