updated script functions