tweaked some scripts