upgraded some scripts