modifying some scripts