fixed and added some scripts