fixed some scripts