generate users script is working