initial draft of processing script