update funcitonal scripts.