the script that does the actual work
updated manual