add stacks processing script