adds prestart and pretest scripts