updated scripts

created template users with update user function