tweak some scripts