updated scripts lib