first version of gather and process scripts