updated scripts with logs