fixed some scripts

mostly done