starting to make primary scripts generic to elimate number of files - not done yet