adding prelim code for both Scripted and Profile

refreshes.