minor changes of some scripts