updated scripts.start and main