adjust some scripts