fix the script and add help