updated scripts from endo