initial version of the script