modify some scripts