simple and multiproc versions of the script