building processing script 1st pass