added script stuff