fixing some scripts