addded ref
other script additions